import Vue from "vue";

import router from "./router";

import App from "./App.vue";
import Mint from "./mint-ui/src/index";
Vue.config.productionTip = false;

Vue.use(Mint);

const callback = () => {
  new Vue({
    router,
    render: (h) => h(App),
  }).$mount("#app");
};

if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", callback);
} else {
  callback();
}
